{config_load file="config.conf" section="setup"}
{include file="header.tpl"}
{include file="header_body.tpl"}

<!-- START CONTENT -->
<section class="container clearfix">
    <!-- START PAGE INFO -->
    <header class="container page_info clearfix">

        <h1 class="regular brown bottom_line">Rejestracja</h1>

        <div class="clear"></div>
    </header>

    <!-- END PAGE INFO -->

    <div class="padding15"></div>


    <!-- START COL 2/3 LAST -->
    <div>



        <!-- SUCCESS MESSAGE -->
        <div class="success_box none">
            Email wysłany. Dziękujemy.
        </div>
        <!-- END SUCCESS MESSAGE -->



        {if !isset($signupResult)}
            <p class="required_info"><span>*</span> Wymagane</p>
            <!-- START CONTACT FORM -->
            <form action="signup.php" method="post" class="contact_form">
                <p>
                    <label for="user_name">Login <span>*</span></label>
                    <input class="inputText" type="text" id="user_name" name="user_name" />
                </p>

                <div class="clear"></div>
                <p>
                    <label for="user_email">E-mail </label>
                    <input class="inputText" type="text" id="user_email" name="user_email" />
                </p>
                <div class="clear"></div>
                <p>
                    <label for="user_pass">Hasło <span>*</span></label>
                    <input style="display: " class="inputText" type="password" id="user_pass" name="user_pass" />

                </p>
                <div class="clear"></div>
                <p>
                    <label for="user_pass_check">Powtórz hasło <span>*</span></label>
                    <input class="inputText" type="password" id="user_pass_check" name="user_pass_check" />

                </p>
                <div class="clear"></div>

                <p class="submit">
                    <a href="javascript:void(0);" class="button white" onclick="$('.contact_form').submit();">Potwierdź</a>
                </p>
            </form>
            <!-- END CONTACT FORM -->
            {if isset($errors)}
                <!-- ERROR MESSAGE -->
                <div class="error_box">
                    Uzupełnij wymagane pola.
                </div>
                <!-- END ERROR MESSAGE -->

                <ul>
                    {foreach from=$errors key=k item=v}
                        <li>{$k}: {$v}</li>
                    {/foreach}
                </ul>
            {/if}

        {else}
            <div class="clear"></div>
            <p>
               {$signupResult}
            </p>

        {/if}



    </div>
    <!-- END COL 2/3 LAST -->



    <div class="clear padding20"></div>


</section>
<!-- END CONTENT -->

{include file="footer.tpl"}